package filter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author： pang-yun
 * @date： 2021-11-29 15:28
 * 功能目的 ：用于
 */

public class Gate extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getSession().setAttribute("user","pang");
        req.getRequestDispatcher("/picture/a.png").forward(req,resp);
        System.out.println("转发到filter");
    }
}
